1 const int SIZE
= 1000000;
3 //criba[i] = false si i es primo
7 memset(criba
, false, sizeof(criba
));
9 criba
[0] = criba
[1] = true;
10 for (int i
=4; i
<=SIZE
; i
+= 2){
13 for (int i
=3; i
*i
<=SIZE
; i
+= 2){
15 for (int j
=i
*i
; j
<=SIZE
; j
+= i
){